﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FPSO.Models.Domain
{
    public class TankVolumeDetail
    {
        public string TankId { get; set; }
        public string TankName { get; set; }
        public double TankTotleVolume { get; set; }
        public double TankTargetVolume { get; set; }
        public double TankInitVolume { get; set; }
		//TankCurrentVolume记录相较于TankInitVolume的变化量
		public double TankCurrentVolume { get; set; }
		public double TankPipeSpeed { get; set; }

		public TankVolumeDetail Copy()
        {
            TankVolumeDetail tankVolumeDetail = new TankVolumeDetail();
            tankVolumeDetail.TankId = TankId;
            tankVolumeDetail.TankName = TankName;
            tankVolumeDetail.TankTotleVolume = TankTotleVolume;
            tankVolumeDetail.TankTargetVolume = TankTargetVolume;
            tankVolumeDetail.TankInitVolume = TankInitVolume;
			tankVolumeDetail.TankCurrentVolume = TankCurrentVolume;
			tankVolumeDetail.TankPipeSpeed = TankPipeSpeed;

			return tankVolumeDetail;

        }
    }
    public class TaskTankTimeFlagDetail
    {
        public DateTime TimeFlag { get; set; }
        public List<TankVolumeDetail> tankVolumeDetails { get; set; }
    }
}
